//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014-2019 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The PECOS Development Team
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the Version 2.1 GNU Lesser General
// Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc. 51 Franklin Street, Fifth Floor,
// Boston, MA  02110-1301  USA
//
//-----------------------------------------------------------------------el-

#ifndef GRINS_ELASTIC_MEMBRANE_CONSTANT_PRESSURE_H
#define GRINS_ELASTIC_MEMBRANE_CONSTANT_PRESSURE_H

//GRINS
#include "grins/elastic_membrane_pressure.h"
#include "grins/constant_pressure.h"

namespace GRINS
{
  //! Specific subclass of ElasticMembranePressure for ConstantPressure
  /*! Mostly syntactic sugar except to add reset_pressure function
      for scalar pressures. */
  class ElasticMembraneConstantPressure : public ElasticMembranePressure<ConstantPressure>
  {
  public:

    ElasticMembraneConstantPressure( const std::string & physics_name,
                                     const GetPot & input )
      : ElasticMembranePressure<ConstantPressure>(physics_name,input)
    {}

    virtual ~ElasticMembraneConstantPressure() = default;

    void reset_pressure( libMesh::Real pressure_in )
    {
      ConstantPressure * constant_press_ptr = libMesh::cast_ptr<ConstantPressure *>(_pressure.get());
      constant_press_ptr->reset_value(pressure_in);
    }

  };

} // end namespace GRINS

#endif // GRINS_ELASTIC_MEMBRANE_CONSTANT_PRESSURE_H
